import django_filters
from .models import *

class ActivityFilter(django_filters.rest_framework.FilterSet):
    """过滤类"""

    name = django_filters.CharFilter(lookup_expr='icontains')
    key = django_filters.CharFilter(lookup_expr='icontains')
    class Meta:
        model = Activity
        fields = '__all__'